添加tipview

chengzhenyu 8 years ago
parent
commit
f8306b80f1

+ 1 - 1
app/src/main/java/ai/pai/client/activity/BaseActivity.java

@@ -18,7 +18,7 @@ import ai.pai.client.swipelayout.Utils;
18 18
 /**
19 19
  * Created by chengzhenyu on 2015/12/2.
20 20
  */
21
-public class BaseActivity extends AppCompatActivity implements SwipeBackActivityBase {
21
+public class BaseActivity extends FragmentActivity implements SwipeBackActivityBase {
22 22
 
23 23
     protected  String TAG ;
24 24
 

+ 2 - 3
app/src/main/java/ai/pai/client/activity/GroupActivity.java

@@ -207,11 +207,10 @@ public class GroupActivity extends BaseActivity implements View.OnClickListener
207 207
                 runOnUiThread(new Runnable() {
208 208
                     @Override
209 209
                     public void run() {
210
-                        int mHeight = getSupportActionBar().getHeight();
211 210
                         int left = cameraBtn.getLeft();
212 211
                         int right = cameraBtn.getRight();
213
-                        int top = cameraBtn.getTop() + mHeight;
214
-                        int bottom = cameraBtn.getBottom() + mHeight;
212
+                        int top = cameraBtn.getTop();
213
+                        int bottom = cameraBtn.getBottom();
215 214
                         int loc[] = {left, top, right, bottom};
216 215
                         Intent intent = new Intent(GroupActivity.this, TipsActivity.class);
217 216
                         intent.putExtra("loc", loc);